{#{% extends "blog/thinkerMdBase.html" %}#}
{% load staticfiles %}
<style type="text/css" scoped="scoped">
    @import "{% static 'blog/thinkerMd/dist/stylesheets/thinker-md.user.css' %}";
    @import "{% static 'blog/thinkerMd/dist/stylesheets/thinker-md.vendor.css' %}";
    @import "{% static 'blog/thinkerMd/dist/emoji/nature.css' %}";
    @import "{% static 'blog/thinkerMd/dist/emoji/object.css' %}";
    @import "{% static 'blog/thinkerMd/dist/emoji/people.css' %}";
    @import "{% static 'blog/thinkerMd/dist/emoji/place.css' %}";
    @import "{% static 'blog/thinkerMd/dist/emoji/Sysmbols.css' %}";
    @import "{% static 'blog/thinkerMd/dist/emoji/twemoji.css' %}";
</style>
<script type="text/javascript" charset="utf-8" src="{% static 'blog/thinkerMd/dist/javascripts/jquery-2.1.3.min.js' %}"></script>
<script type="text/javascript" charset="utf-8" src="{% static 'blog/thinkerMd/dist/javascripts/thinker-md.vendor.min.js' %}"></script>
<script>
    
    $("textarea[id='id_content']").attr("value","{{ csrf_token }}");
    $("textarea[id='id_content']").markdown({
        
        hiddenButtons:'cmdPreview',
        footer:'<div id="twitter-footer" class="well" style="display:none;">',
        resize:'both',
        imgurl: '/ajaxUpload/',
        base64url:'/ajaxUpload/',
        
        onChange:function(e){
            var content = e.parseContent()

            if (content != '') 
            {
                $('#twitter-footer').show().html(content)
            }

        }
    });
 </script>